﻿<div ng-controller="bazaarProductController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li><a href="javascript:void(0)" ng-click="goBack()">商品管理</a></li>
                <li class="active">商品审核</li>
            </ol>
        </div>
    </div>
    <div class="form-horizontal">
        <div class="row">
            <div class="col-sm-12 ">
                <div class="panel panel-default">
                    <div class="panel-heading">基础信息</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">卖家信息：</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">  {{model.merchant_name}}    {{model.merchant_mobile}}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">创建时间：</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">{{model.create_time}}</p>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <div class="col-sm-12 ">
                <div class="panel panel-default">
                    <div class="panel-heading">商品信息</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品名称：</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">{{model.product_name}}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品介绍：</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">{{model.prodcut_desc}}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品图：</label>
                            <div class="col-sm-8">
                                <div ng-repeat="item in model.imgs" style="float:left">
                                    <img src="{{site.img_url+item}}" height="200" width="200" />
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品类目：</label>
                            <div class="col-sm-8">
                                <select class="form-control input-sm" ng-model="model.category_id">
                                    <option ng-repeat="x in categorys" value="{{x.id}}">{{x.name}}</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品库存：</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">{{model.num}}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">市场价格：</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">{{model.market_price}}元</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-12 ">
                <div class="panel panel-default">
                    <div class="panel-heading">其他信息</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">交付方式：</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">{{model.delivering==0?"包邮":"到付"}}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品状态：</label>
                            <div class="col-sm-8">
                                <select name="status" class="form-control input-sm" ng-model="model.status">
                                    <option value="0" ng-selected="model.status==0">待审核</option>
                                    <option value="1">上架中</option>
                                    <option value="2">违规下架</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">商品价格：</label>
                            <div class="col-sm-8">
                                <p class="form-control-static"><input name="price" class="form-control input-sm" ng-model="model.price">红钻</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-8">
                                <textarea name="remark" class="form-control input-sm" ng-model="model.remark" rows="4"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">推荐状态：</label>
                            <div class="col-sm-8">
                                <p class="form-control-static">{{model.is_recommend?"已推荐":"未推荐"}}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group form-group-sm">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-3">
                    <button type="submit" class="btn btn-primary btn-sm" ng-click="audit(model.id,model.category_id,model.status,model.price,model.remark)" btn-loading="psdisabled" loading-text="保存中..." ng-disabled="psdisabled">
                        <i class="fa fa-save"></i> 审核
                    </button>
                    <button ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 返回</button>
                </div>
            </div>
        </div>

    </div>
</div>